<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script>
    var haveConflict = function (event1, event2) {
      return !(event1[0] > event2[1] || event2[0] > event1[1]);
    };
    console.log(haveConflict(["01:15", "02:00"], ["02:00", "03:00"]));
  </script>
</body>

</html>